package com.example.stumanager.student;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.stumanager.R;
import com.example.stumanager.config.PersonalInformation;
import com.example.stumanager.config.ChangePassword;

/**
 * 学生个人信息
 */
public class StudentPersonalCenterPage extends AppCompatActivity {
    private Button bt1,bt2,bt3,bt5;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.student_personal_center_page);
        bt1=findViewById(R.id.bt1);
        bt2=findViewById(R.id.bt2);
        bt3=findViewById(R.id.bt3);
        //个人信息
        bt1.setOnClickListener(view -> {
            Intent intent = new Intent();
            intent.setClass(StudentPersonalCenterPage.this , PersonalInformation.class);
            startActivity(intent);
        });

        //修改密码
        bt2.setOnClickListener(view -> {
            Intent intent = new Intent();
            intent.setClass(StudentPersonalCenterPage.this , ChangePassword.class);
            startActivity(intent);
        });

        //返回
        bt3.setOnClickListener(view -> {
            Intent intent = new Intent();
            intent.setClass(StudentPersonalCenterPage.this , StudentHomePage.class);
            startActivity(intent);
        });

    }
}